package com.vehicle.repair.repository;

import com.vehicle.repair.model.Feedback;
import com.vehicle.repair.model.WorkOrder;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;

public interface FeedbackRepository extends JpaRepository<Feedback, Integer> {
    Optional<Feedback> findByOrder(WorkOrder order);
    
    Optional<Feedback> findByOrder_OrderId(Integer orderId);
}
